package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type Article struct {
	gorm.Model
	ArticleName    string `gorm:"type:varchar(50)"`
	ArticleContent string `gorm:"type:varchar(50)"`
	ArticleAuthor  string `gorm:"type:varchar(50)"`
}
type Order struct {
	gorm.Model
	OrderName string `gorm:"type:varchar(50)"`
	OrderTo   string `gorm:"type:varchar(50)"`
	Aid       int    `gorm:"type:int"`
}
type ArticleOrderList struct {
	OrderId        int
	OrderName      string
	OrderTo        string
	ArticleName    string
	ArticleContent string
	ArticleAuthor  string
}
type Per struct {
	gorm.Model
	PerName  string `gorm:"type:varchar(50)"`
	PerPrice int    `gorm:"type:int"`
}
type Git struct {
	gorm.Model
	GitName  string `gorm:"type:varchar(50)"`
	GitTitle string `gorm:"type:varchar(50)"`
	Pid      int    `gorm:"type:int"`
}
type PerGitList struct {
	GitId    int
	GitName  string
	GitTitle string
	PerName  string
	PerPrice int
}
